<%@ include file="/common/taglibs.jsp"%>
<!doctype html>
<html>
<head>
	<link rel="stylesheet" href='<c:url value="/kindeditor/themes/default/default.css"/>' />
	<link rel="stylesheet" href='<c:url value="/kindeditor/plugins/code/prettify.css"/>' />
	<script charset="utf-8" src='<c:url value="/kindeditor/kindeditor.js"/>'></script>
	<script charset="utf-8" src='<c:url value="/kindeditor/lang/zh_CN.js"/>'></script>
	<script charset="utf-8" src='<c:url value="/kindeditor/plugins/code/prettify.js"/>'></script>
	<script>
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="content1"]', {
				cssPath : '/kindeditor/plugins/code/prettify.css',
				uploadJson : '/kindeditor/jsp/upload_json.jsp',
				fileManagerJson : '/kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['example'].submit();
					});
				}
			});
			prettyPrint();
		});
	</script>
</head>
<body>
<form name="example" method="post" action="demo.jsp">
	<textarea name="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"></textarea>
</form>
</body>
</html>